package com.xyking.yking.util;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * VM Args: -Xms20m  -Xmx20m -XX:+HeapDumOnOutOfMemoryError
 * @author zzm
 */
public class JVMStudy {

    public static void main(String[] args) {
        Map<String, List> map = new HashMap<>();

        for (int i = 0; i < 5; i++) {
            List list = map.get("x");
            if (list == null) {
                list = new ArrayList();
                map.put("x", list);
            }

            list.add("小喻");
        }

        System.out.println(map);


    }
}
